<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

      <ui:composition template="/header.xhtml">
            <ui:define name="menu">
                  <h:commandLink value="Inicio" action="/header.xhtml"/>
        </ui:define>
          <ui:define name="conteudo">
            <legend><i class="icon-edit"></i>Cadastrar Categoria produto</legend>
            <h:inputHidden value="#{categoriaProdutoMB.categoriaProduto.id}"/>
            <div style="margin-left: 45px;">
                <h:panelGrid columns="1">

                    <h:outputLabel class="control-label">Id</h:outputLabel>
                    <h:inputText value="#{categoriaProdutoMB.categoriaProduto.id}" class="input-large" required="true" readonly="true" />

                    <h:outputLabel class="control-label">Nome</h:outputLabel>
                    <h:inputText value="#{categoriaProdutoMB.categoriaProduto.nome}" class="input-large" required="true"/>

                </h:panelGrid>

            </div>
            <div class="form-actions">
                <h:commandButton value="Salvar" action="#{categoriaProdutoMB.salvar()}" class="btn btn-inverse  pull-right" onclick="return confirm('Deseja realmente salvar?')"></h:commandButton>
                <h:commandButton value="Limpar" action="#{categoriaProdutoMB.novo()}" class="btn  pull-left"></h:commandButton></div>

              </ui:define>
          </ui:composition>
</html>

